﻿using System.Windows;

namespace BrasilFramework.Controle.WPF.Comum
{
    public class Util
    {
        public static void AtualizarTamanhoControle(FrameworkElement controle)
        {
            controle.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
            controle.Width = controle.DesiredSize.Width;
            controle.Height = controle.DesiredSize.Height;
        }
    }
}